package com.eventapp.dao;

import com.eventapp.model.Event;
import com.eventapp.model.EventPrivate;
import com.eventapp.model.EventPublic;
import com.eventapp.model.User;

import org.hibernate.Query;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface EventDao extends GenericDao<Event, Long> {

   public List<EventPublic> getPublicEvents();
   
   public List<EventPublic> getPublicEventsByOwner(Long ownerId);
    
   public List<EventPrivate> getPrivateEventsByOwner(Long ownerId);

   public Event saveEvent(Event event);


}
